<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>

<?php	

	include("inc/joomlaInt.php");
	include("inc/inc_configuration.php");
	
if ($jUser==0)
{
	echo "Bitte zuerst einloggen!";
}
else
{	

	echo'	<form action="abwesenheit_eintragen_v.php" method="post">';

	echo "	<table id='tabelle'>
			<thead><tr><th></th><th></th><th></th><th></th></tr></thead>
			<tr><td>
			Von:</td> <td><select name='sT' Size='1'>";
						$t = 1;
							while($t < 32)
							{
								echo '<Option Value="',$t,'">',$t,'</option>';
								$t++;
							}
	echo "</select></td>";

	echo "<td><select name='sM' Size='1'>
					<Option Value='1'>Januar</option>
					<Option Value='2'>Februar</option>
					<Option Value='3'>März</option>
					<Option Value='4'>April</option>
					<Option Value='5'>Mai</option>
					<Option Value='6'>Juni</option>
					<Option Value='7'>Juli</option>
					<Option Value='8'>August</option>
					<Option Value='9'>September</option>
					<Option Value='10'>Oktober</option>
					<Option Value='11'>November</option>
					<Option Value='12'>Dezember</option>'";
	echo "</select></td>";


	$timestamp = time();
	$jahr = date("Y",$timestamp);

	echo "<td><select name='sJ' Size='1'>";
						$t = 2011;
							while($t <= ($jahr+1))
							{
								echo '<Option Value="',$t,'">',$t,'</option>';
								$t++;
							}
	echo "</select></td></tr>";

	echo "	<tr><td>Bis:</td><td><select name='bT' Size='1'>";
						$t = 1;
							while($t < 32)
							{
								echo '<Option Value="',$t,'">',$t,'</option>';
								$t++;
							}
	echo "</select></td>";

	echo "<td><select name='bM' Size='1'>
					<Option Value='1'>Januar</option>
					<Option Value='2'>Februar</option>
					<Option Value='3'>März</option>
					<Option Value='4'>April</option>
					<Option Value='5'>Mai</option>
					<Option Value='6'>Juni</option>
					<Option Value='7'>Juli</option>
					<Option Value='8'>August</option>
					<Option Value='9'>September</option>
					<Option Value='10'>Oktober</option>
					<Option Value='11'>November</option>
					<Option Value='12'>Dezember</option>'";
	echo "</select></td>";

	echo "<td><select name='bJ' Size='1'>";
						$t = 2011;
							while($t <= ($jahr+1))
							{
								echo '<Option Value="',$t,'">',$t,'</option>';
								$t++;
							}
	echo "</select></td></tr><thead><tr><th></th><th></th><th></th><th></th></tr></thead></table><br><br>";

	echo '	Grund:<br><textarea name="content" cols="50" rows="10" wrap="soft"></textarea>
			<br><br><input type="submit" value="Eintragen" class="button eintragen"></form>';




	// echo '

			// <input type="text" size="17" name="yearB"><br><br>
			// 2. Jahr: <input type="text" size="17" name="yearE"><br><br>
			// Saisonnummer (in diese Zeit): <input type="text" size="17" name="number"><br><br>

			// <input type="submit" value="OK">
			// </form>
		// ';
	echo "<br><br>
				<center><a href='javascript:window.history.back()' class='button zurueck'>Zurück</a></center>";
}				
?>

</body>
</html>